/**
 * 通用混合
 * */
import { rbacmenumenuclick } from '@api/hqapi';
export default {
    methods: {
        // 当 $route 更新时触发
        appRouteChange (to, from) {
            if (to.path !== '/login' && to.path !== '/register') {
                let params = {
                    menu_name: to.meta.title,
                    menu_route: to.path
                }
                rbacmenumenuclick(params).then(() => {}).catch(() => {})
            }
        }
    }
}
